package com.lc.sell.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author 龙晨
 * @since 2022-02-12 12:28:21
 */
@Getter
@Setter
@TableName("dc_orderdetail")
@ApiModel(value = "Orderdetail对象", description = "")
public class OrderDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("订单详情id")
    @TableId("detail_id")
    private String detailId;

    @ApiModelProperty("订单id")
    @TableField("order_id")
    private String orderId;

    @ApiModelProperty("商品id")
    @TableField("product_id")
    private Integer id;

    @ApiModelProperty("商品名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("商品单价")
    @TableField("price")
    private BigDecimal price;

    @ApiModelProperty("商品数量")
    @TableField("number")
    private Integer number;

    @ApiModelProperty("创建时间")
    @TableField("created_time")
    private String createdTime;

    @ApiModelProperty("商品属性")
    @TableField("postscript")
    private String props_text;

    @ApiModelProperty("商家id")
    @TableField("mid")
    private Integer mid;
}
